package com.sugon.ww

import scala.collection.mutable.ArrayBuffer

/**
  * @author weiwei
  **/
object TestScala {

  def main(args: Array[String]): Unit = {

    val arr: ArrayBuffer[Int] = ArrayBuffer[Int]()
    for (i <- 0 until 10) {
      arr.append(i)
    }

    val predicates: Array[String] = arr.map(i => {
      s"substring(S_B050012,10)='$i'"
    }).toArray

    predicates.foreach(s=>println(s))
  }

}
